package org.example.service;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

public interface AccountService {

    //@Transactional(propagation = Propagation.REQUIRED) //为此transfer方法添加事务机制
    @Transactional //为此transfer方法添加事务机制
    //转账
    void transfer(String outAccount,String inAccount,int money);

    //查询xxx
    /*@Transactional(propagation = Propagation.SUPPORTS)
    void getXxx();*/



}
